#!/bin/bash

IMAGE_NAME="ccr.ccs.tencentyun.com/smartkola/smartkola-dev"
IMAGE_TAG=`date '+%Y%m%d%H%M%S'`

mvn clean kotlin:compile package -Dmaven.test.skip=true
if [ $(ps -ef | grep -c "docker") -gt 1 ];
then systemctl start docker;
fi
docker build -t $IMAGE_NAME:$IMAGE_TAG .
docker login --username=2446011668 ccr.ccs.tencentyun.com
sleep 2&


